package com.hhxy.reflect.framwork;

//通用框架的设计
public class ReflectFramwork {
    public static void main(String[] args) {
        Student s = new Student();
        s.setName("猪八戒");
        s.setAge(10000);
        s.setSex('男');
        s.setClassName("西天取经1班");
        s.setHobby("吃喝玩乐");
        MybatisUtil.save(s);

        Teacher t = new Teacher();
        t.setName("玄奘");
        t.setSex('男');
        t.setSalary(100);
        MybatisUtil.save(t);

    }
}
